package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.CDetails;

/**
 * 采购明细Mapper接口
 * 
 * @author GGJ
 * @date 2024-05-13
 */
public interface CDetailsMapper 
{
    /**
     * 查询采购明细
     * 
     * @param id 采购明细主键
     * @return 采购明细
     */
    public CDetails selectCDetailsById(Long id);

    /**
     * 查询采购明细列表
     * 
     * @param cDetails 采购明细
     * @return 采购明细集合
     */
    public List<CDetails> selectCDetailsList(CDetails cDetails);

    /**
     * 新增采购明细
     * 
     * @param cDetails 采购明细
     * @return 结果
     */
    public int insertCDetails(CDetails cDetails);

    /**
     * 修改采购明细
     * 
     * @param cDetails 采购明细
     * @return 结果
     */
    public int updateCDetails(CDetails cDetails);

    /**
     * 删除采购明细
     * 
     * @param id 采购明细主键
     * @return 结果
     */
    public int deleteCDetailsById(Long id);

    /**
     * 批量删除采购明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCDetailsByIds(Long[] ids);
}
